package com.lanou3g.code0408.homework;

/**
 * Created by dllo on 18/4/8.
 */
public class Main {
    public static void main(String[] args) {
        Animal animal = new Animal("豆豆","小狗",12);
        Animal animal1 = new Animal("小小豆");
        animal1.setKind("小狗");
        animal1.setAge(18);

        animal.run();
        animal1.run();

        Car car = new Car("大众","2.0l",100);
        Car car1 = new Car("奔驰");
        car1.setOilMass("2.5l");
        car1.setSpeed(1100);

        car.moveHouse();
        car1.moveHouse();




    }
}
